package com.example.mcpclient.service;

import com.example.mcpclient.response.ShopResponse;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xuguang
 */
@Service
public class ShopService {


    /**
     * 获取门店列表
     */
    @Tool(name = "queryShopList", description = "查询门店列表(是当前项目的本地方法), 当涉及到门店详情和门店列表时候,都可以调用本方法")
    public List<ShopResponse> queryShopList() {
        return List.of(
                new ShopResponse(1L, "门店1"),
                new ShopResponse(2L, "门店2"),
                new ShopResponse(3L, "门店3")
        );
    }
}
